package com.nzw.pojo.company;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by 尹文祥 on 2018\3\3 0003.
 *
 * 公司的实体类
 *
 */

@Table(name = "t_company")
public class Company {

    private Long id;                //id
    private String companyName;     //公司名称
    //private Date craateDate;        //创建时间
    private String appid;           //appid
    private String head;            //头像
    private Boolean single;         //是否单站
    private String sessionkey;      //阿里短信key
    private String keySecret;        //阿里密钥
    private String smsSign;         //阿里短信签名


    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "companyName")
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }


//    @Column(name = "createDate")
//    public Date getCraateDate() {
//        return craateDate;
//    }
//
//    public void setCraateDate(Date craateDate) {
//        this.craateDate = craateDate;
//    }


    @Column(name = "appid")
    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    @Column(name = "head")
    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }


    @Column(name = "single")
    public Boolean getSingle() {
        return single;
    }

    public void setSingle(Boolean single) {
        this.single = single;
    }


    @Column(name = "sessionkey")
    public String getSessionkey() {
        return sessionkey;
    }

    public void setSessionkey(String sessionkey) {
        this.sessionkey = sessionkey;
    }

    @Column(name = "keySecret")
    public String getKeySecret() {
        return keySecret;
    }

    public void setKeySecret(String keySecret) {
        this.keySecret = keySecret;
    }

    @Column(name = "smsSign")
    public String getSmsSign() {
        return smsSign;
    }

    public void setSmsSign(String smsSign) {
        this.smsSign = smsSign;
    }




    @Override
    public String toString() {
        return "Company{" +
                "id=" + id +
                ", companyName='" + companyName + '\'' +
 //               ", craateDate=" + craateDate +
                ", appid='" + appid + '\'' +
                ", head='" + head + '\'' +
                ", single=" + single +
                ", sessionkey='" + sessionkey + '\'' +
                ", keySecret='" + keySecret + '\'' +
                ", smsSign='" + smsSign + '\'' +
                '}';
    }
}
